import cfg

import mail

mail_config = cfg.config("mail")

if mail_config:
    user, subject, content = mail_config["user"], "数据统计表", "统计表见附件，请注意查收！"
    file_path = att_name = '李彬每月拿货统计.xlsx'
    msg = mail.create_email(user, subject, content, file_path)
    mail.send_email(mail_config, msg)
